package com.itic.appbase.framework.xcx.type;
/**
 * 商品状态枚举
 * @author enne
 *
 */
public enum SelfClaim {
	no("0","不支持"),yes("1","支持");

	private String state;
	
	private String name;
	
	SelfClaim(String state, String name) {
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static SelfClaim getSelfClaim(String state) {
		SelfClaim SelfClaim = null;
		switch (state) {
		case "0":
			SelfClaim = SelfClaim.no;
			break;
		case "1":
			SelfClaim = SelfClaim.yes;
			break;
		}
		return SelfClaim;
	}

}
